<include file="Public/base"/>
<body>
    <div class="page-container">
        <form action="" method="post" class="form form-horizontal" id="commentFrom">
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2">订单编号：</label>
                <div class="formControls col-xs-3 col-sm-3">
                    <input type="text" placeholder="" value="{$order['id']}" class="input-text"  disabled="disabled" />
                </div>
                <label class="form-label col-xs-4 col-sm-2">订单发起人：</label>
                <div class="formControls col-xs-3 col-sm-4">
                    <input type="text" placeholder="" value="{$order['send_name']}" class="input-text"  disabled="disabled" />
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2">类型：</label>
                <div class="formControls col-xs-3 col-sm-3">
                    <span class="select-box">
                        <select class="select sex" size="1"  disabled="disabled">
                            <option value="1" <eq name="sale['type']" value="0">selected="selected"</eq>>诊所下单</option>
                            <option value="2" <eq name="sale['type']" value="1">selected="selected"</eq>>业务员下单</option>
                        </select>
                    </span>
                </div>

                <label class="form-label col-xs-4 col-sm-2">订单接收人：</label>
                <div class="formControls col-xs-4 col-sm-4">
                    <input type="text" placeholder="" value="{$order['accept_name']}" class="input-text"  disabled="disabled" />
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2">总金额(元)：</label>

                <div class="formControls col-xs-3 col-sm-3">
                    <input type="text" placeholder="" value="{$order['total_price']}" class="input-text"  disabled="disabled" />
                </div>
                <label class="form-label col-xs-4 col-sm-2">药品总量：</label>
                <div class="formControls col-xs-3 col-sm-4">
                    <input type="text" placeholder="" value="{$order['num']}" class="input-text"  disabled="disabled" />
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2">下单时间：</label>
                <div class="formControls col-xs-3 col-sm-3">
                    <input type="text" placeholder="" value="{$order['add_time']|date='Y-m-d H:i:s',###}" class="input-text"  disabled="disabled" />
                </div>
                <label class="form-label col-xs-4 col-sm-2">订单状态：</label>
                <div class="formControls col-xs-3 col-sm-4">
                    <span class="select-box">
                        <select class="select sex" size="1"  disabled="disabled">
                            <option value="0" <eq name="sale['status']" value="0">selected="selected"</eq>>待处理</option>
                            <option value="1" <eq name="sale['status']" value="1">selected="selected"</eq>>已完成</option>
                            <option value="2" <eq name="sale['status']" value="2">selected="selected"</eq>>退货</option>
                        </select>
                    </span>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-2 col-sm-2">地址：</label>
                <div class="formControls col-xs-9 col-sm-9">
                    <input type="text" placeholder="" value="{$order['address']}" class="input-text"  disabled="disabled" />
                </div>
            </div>

            <table class="table table-border table-bordered table-bg">
                <thead>
                    <tr>
                        <th width="80">药品名称</th>
                        <th width="80">单价</th>
                        <th width="80">购买数量</th>
                        <th width="80">总价</th>
                    </tr>
                </thead>
                <notempty name="orderDetailList">
                    <volist name="orderDetailList" id="orderDetailVo">
                        <tr>
                            <td>
                                {$orderDetailVo['drugs_name']}
                            </td>
                            <td>
                                {$orderDetailVo['price']}
                            </td>
                            <td>
                                {$orderDetailVo['num']}
                            </td>
                            <td>
                                {$orderDetailVo['total_price']}
                            </td>
                        </tr>
                    </volist>
                    <else/>
                    <tr>
                        <td colspan="4" style="text-align: center;">暂无药品</td>
                    </tr>
                </notempty>
            </table>


<!--            <div class="row cl">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                    <button onClick="sub_save();" class="btn btn-secondary radius" type="button"> 提交</button>
                    <button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
                </div>
            </div>-->
        </form>
    </div>
</body>
</html>